layui.use('element', function(){
    var $ = layui.jquery,element = layui.element;

    var active = {
        index:function(){
            $("#iframe_body").attr("src","/index");
        }
        ,student:function(){
            $("#iframe_body").attr("src","/student/studentinfo");
        }
        ,equipment:function () {
            $("#iframe_body").attr("src","/equipment/equipmentinfo");
        }
    };
    $('.layui-ahref').on('click', function(){
        var othis = $(this), type = othis.data('type');
        active[type] ? active[type].call(this, othis) : '';
    });
});